import store from '@/store/store'
import layout from '../components/layout.vue'

export default [
  {
    path: '/stock',
    name: 'stock',
    component: layout,
    children: [
      {
        path: '/stock/index', // 仓储
        name: 'stockData',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/stock/stock/index.vue')
      },
      {
        path: '/materialTransferOrder/index', // 调拨
        name: 'materialTransferOrder',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/stock/materialTransferOrder/index.vue')
      },
      {
        path: '/materialIn/index', // 入库
        name: 'materialIn',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/stock/materialIn/index.vue')
      },
      {
        path: '/materialOut/index', // 出库
        name: 'materialOut',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/stock/materialOut/index.vue')
      },
      {
        path: '/inventoryDetail/index', // 库存详情
        name: 'inventoryDetail',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/stock/inventoryDetail/index.vue')
      },
      {
        path: '/materialStock/index', // 入库
        name: 'materialStock',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/stock/materialStock/index.vue')
      },
      {
        path: '/materiaInTask/index', // 入库任务
        name: 'materiaInTask',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/stock/materiaInTask/index.vue')
      },
      {
        path: '/taskList/index', // 任务记录
        name: 'taskList',
        meta: {
          title: store.state.title
        },
        component: () => import('../views/stock/taskList/index.vue')
      }
    ]
  }
]
